package de.koller.so.model;

import de.koller.so.gl.obj.Texture;
import org.lwjgl.opengl.GL11;

public class Polygon {
	
	public final Texture texture;
	public final Vertex a = new Vertex();
	public final Vertex b = new Vertex();
	public final Vertex c = new Vertex();

	public Polygon( Texture texture ) {
		this.texture = texture;
	}
	
	public void renderFast() {
		//texture.getTexture().bind();
		texture.bindAnisotrophic();
		
		GL11.glBegin( GL11.GL_TRIANGLES );
		
			a.render();
			b.render();
			c.render();
		
		GL11.glEnd();
	}
	
	
}
